<?php
        class usersettingdata extends template{
        
             function __construct($db,$info)
           { 
             $this->db=$db;   
             $this->info=$info;
             $this->db->get_connect();
           }
           function view(){ 
           
            if($_GET['userid'])
            {
            $sql=" SELECT * FROM `tb_user` where tb_user.userid=".$_GET['userid'];
            $arrayuser=$this->db->db_set_recordset($sql);
            $data=array();
            
            $data['datauser']=$arrayuser[0];
            if($data['datauser']['userid'])
            {
            $this->setdata($data);
             $this->load('usersettingdata');
            }
            
            }
            
           }
        
        
        }
?>
